package com.maxsalad.uc.pojo;

import com.maxsalad.common.po.AutoBasePO;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Created by Administrator on 2016-3-13.
 */
@Entity
@Table(name = "t_order_detail")
public class TOrderDetailEntity extends AutoBasePO implements Serializable {
    private long orderId;
    private long dishId;
    private int quantity;
    private int orderOrder;
    private String description;

    @Column(name = "order_id", nullable = false)
    public long getOrderId() {
        return orderId;
    }

    public void setOrderId(long orderId) {
        this.orderId = orderId;
    }

    @Column(name = "dish_id", nullable = false)
    public long getDishId() {
        return dishId;
    }

    public void setDishId(long dishId) {
        this.dishId = dishId;
    }

    @Column(name = "quantity", nullable = false)
    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    @Column(name = "order_order", nullable = false)
    public int getOrderOrder() {
        return orderOrder;
    }

    public void setOrderOrder(int orderOrder) {
        this.orderOrder = orderOrder;
    }

    @Column(name = "description", nullable = true)
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
